import java.util.Scanner;

public class ZY {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入一个年份：");
        int a=in.nextInt();
        if(a%4==0&a%100!=0||a%400==0)
            System.out.println("闰年!");
        else
            System.out.println("平年!");
    }
}
